/**
 * 
 */
package com.suneee.shop.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

/**
 * @author liuxh 行业分类管理属性类
 */

@Entity
@Table(name = "t_shop")
public class Shop implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6616181465999036453L;

	// 审核状态
	/**
	 * 审核中
	 */
	public final static String AUDIT = "audit";
	/**
	 * 使用中
	 */
	public final static String USE = "use";
	/**
	 * 创建中
	 */
	public final static String CREATE = "create";

	// 店铺id
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "shop_id", nullable = false)
	private Integer shopId;

	// 行业id
	@Column(name = "industry_id", nullable = false)
	private Integer industryId;

	// 企业id
	@Column(name = "enterprise_code", nullable = false)
	private String enterpriseCode;

	// 渠道id
	@Column(name = "channel_code", nullable = false)
	private String channelCode;
	
	@Transient
	private String channelName;

	// 店铺名称
	@Column(name = "name", nullable = false)
	private String name;

	// 描述
	@Column(name = "remark", nullable = false)
	private String remark;

	// 状态
	@Column(name = "status", nullable = false)
	private String status;

	// 是否可用
	@Column(name = "enabled", nullable = false)
	private boolean enabled;

	//接入信息
	@Column(name = "rule_info", nullable = false)
	private String ruleInfo;
	
	// 代理URL
	@Column(name = "proxy_url", nullable = false)
	private String proxyURL;

	// 创建时间
	@Column(name = "create_time", nullable = false)
	private Timestamp createTime;

	// 创建人id
	@Column(name = "create_user", nullable = false)
	private Integer createUser;


	//接入json
	@Transient
	private String ruleJson;
	
	public Integer getShopId() {
		return shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	public Integer getIndustryId() {
		return industryId;
	}

	public void setIndustryId(Integer industryId) {
		this.industryId = industryId;
	}

	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public String getRuleInfo() {
		return ruleInfo;
	}

	public void setRuleInfo(String ruleInfo) {
		this.ruleInfo = ruleInfo;
	}

	public String getProxyURL() {
		return proxyURL;
	}

	public void setProxyURL(String proxyURL) {
		this.proxyURL = proxyURL;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Integer getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	public String getRuleJson() {
		return ruleJson;
	}

	public void setRuleJson(String ruleJson) {
		this.ruleJson = ruleJson;
	}

	
}
